.class public Lcom/estrongs/android/pop/app/ad/cn/c;
.super Ljava/lang/Object;
.source "AdManager.java"


# direct methods
.method public static a(Landroid/app/Activity;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/h;)V
    .locals 4

    .line 19
    sget-boolean v0, Lcom/estrongs/android/pop/view/e;->d:Z

    if-eqz v0, :cond_0

    .line 20
    sget-object p0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_NONE:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    const/4 p1, -0x1

    const-string v0, "oversea"

    invoke-interface {p2, p0, p1, v0}, Lcom/estrongs/android/pop/app/ad/cn/b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdChannel;ILjava/lang/String;)V

    return-void

    .line 21
    :cond_0
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_KS:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/ad/cn/e;->a(Lcom/estrongs/android/pop/app/ad/cn/AdChannel;)Les/dk;

    move-result-object v0

    .line 22
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "\u5f00\u59cb\u8bf7\u6c42\u5feb\u624b\u6fc0\u52b1\u89c6\u9891: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/ad/cn/AdType;->getKsId()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "AdManager"

    invoke-static {v2, v1}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 23
    new-instance v1, Lcom/estrongs/android/pop/app/ad/cn/c$a;

    invoke-direct {v1, p2, p0, p1}, Lcom/estrongs/android/pop/app/ad/cn/c$a;-><init>(Lcom/estrongs/android/pop/app/ad/cn/h;Landroid/app/Activity;Lcom/estrongs/android/pop/app/ad/cn/AdType;)V

    invoke-interface {v0, p0, p1, v1}, Les/dk;->a(Landroid/app/Activity;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/h;)V

    return-void
.end method

.method public static a(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/b;Lcom/estrongs/android/pop/app/ad/cn/AdType;)V
    .locals 8

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "reqAd = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Lcom/estrongs/android/pop/app/ad/cn/AdType;->getTag()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "AdManager"

    invoke-static {v1, v0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    invoke-static {p3}, Lcom/estrongs/android/pop/app/ad/cn/g;->b(Lcom/estrongs/android/pop/app/ad/cn/AdType;)Ljava/util/List;

    move-result-object v7

    .line 4
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "priority : "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/Enum;->name()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " = "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v7}, Ljava/util/List;->toArray()[Ljava/lang/Object;

    move-result-object v2

    invoke-static {v2}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 5
    invoke-interface {v7}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 6
    sget-object p0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;->TYPE_NONE:Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    const/4 p1, -0x1

    const-string p3, "no priority"

    invoke-interface {p2, p0, p1, p3}, Lcom/estrongs/android/pop/app/ad/cn/b;->a(Lcom/estrongs/android/pop/app/ad/cn/AdChannel;ILjava/lang/String;)V

    return-void

    :cond_0
    const/4 v6, 0x0

    move-object v2, p0

    move-object v3, p1

    move-object v4, p2

    move-object v5, p3

    .line 7
    invoke-static/range {v2 .. v7}, Lcom/estrongs/android/pop/app/ad/cn/c;->b(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/b;Lcom/estrongs/android/pop/app/ad/cn/AdType;ILjava/util/List;)V

    return-void
.end method

.method static synthetic a(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/b;Lcom/estrongs/android/pop/app/ad/cn/AdType;ILjava/util/List;)V
    .locals 0

    .line 8
    invoke-static/range {p0 .. p5}, Lcom/estrongs/android/pop/app/ad/cn/c;->b(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/b;Lcom/estrongs/android/pop/app/ad/cn/AdType;ILjava/util/List;)V

    return-void
.end method

.method private static a(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/b;Lcom/estrongs/android/pop/app/ad/cn/AdType;Les/dk;)V
    .locals 2

    .line 9
    invoke-interface {p4}, Les/dk;->c()Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    move-result-object v0

    const-string v1, "fetch"

    invoke-static {v1, p3, v0}, Lcom/estrongs/android/pop/app/ad/cn/f;->a(Ljava/lang/String;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/AdChannel;)V

    .line 10
    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->SPLASH:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    const-string v1, "AdManager"

    if-eq p3, v0, :cond_3

    sget-object v0, Lcom/estrongs/android/pop/app/ad/cn/AdType;->HOME_BACK_SPLASH:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    if-ne p3, v0, :cond_0

    goto :goto_0

    .line 11
    :cond_0
    invoke-virtual {p3}, Lcom/estrongs/android/pop/app/ad/cn/AdType;->isInterAd()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 12
    instance-of p1, p0, Landroid/app/Activity;

    if-eqz p1, :cond_1

    .line 13
    check-cast p0, Landroid/app/Activity;

    invoke-interface {p4, p0, p3, p2}, Les/dk;->a(Landroid/app/Activity;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V

    goto :goto_1

    :cond_1
    const-string p0, "\u63d2\u5c4f\u5e7f\u544a  need a activity"

    .line 14
    invoke-static {v1, p0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 15
    :cond_2
    invoke-interface {p4, p0, p1, p3, p2}, Les/dk;->a(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V

    goto :goto_1

    .line 16
    :cond_3
    :goto_0
    instance-of v0, p0, Landroid/app/Activity;

    if-eqz v0, :cond_4

    .line 17
    check-cast p0, Landroid/app/Activity;

    invoke-interface {p4, p0, p1, p3, p2}, Les/dk;->a(Landroid/app/Activity;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V

    goto :goto_1

    :cond_4
    const-string p0, "Splash ad need a activity"

    .line 18
    invoke-static {v1, p0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    :goto_1
    return-void
.end method

.method public static a(Lcom/estrongs/android/pop/app/ad/cn/AdChannel;Les/dk;)V
    .locals 0
    .param p0    # Lcom/estrongs/android/pop/app/ad/cn/AdChannel;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p1    # Les/dk;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    invoke-static {p0, p1}, Lcom/estrongs/android/pop/app/ad/cn/e;->a(Lcom/estrongs/android/pop/app/ad/cn/AdChannel;Les/dk;)V

    return-void
.end method

.method private static b(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/b;Lcom/estrongs/android/pop/app/ad/cn/AdType;ILjava/util/List;)V
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Landroid/view/ViewGroup;",
            "Lcom/estrongs/android/pop/app/ad/cn/b;",
            "Lcom/estrongs/android/pop/app/ad/cn/AdType;",
            "I",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/ad/cn/AdChannel;",
            ">;)V"
        }
    .end annotation

    .line 1
    invoke-interface {p5, p4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/ad/cn/AdChannel;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/ad/cn/e;->a(Lcom/estrongs/android/pop/app/ad/cn/AdChannel;)Les/dk;

    move-result-object v0

    const/4 v1, 0x1

    add-int/lit8 v7, p4, 0x1

    .line 2
    invoke-interface {p5}, Ljava/util/List;->size()I

    move-result p4

    if-ne v7, p4, :cond_0

    .line 3
    invoke-interface {v0, v1}, Les/dk;->a(Z)V

    goto :goto_0

    :cond_0
    const/4 p4, 0x0

    .line 4
    invoke-interface {v0, p4}, Les/dk;->a(Z)V

    .line 5
    new-instance p4, Lcom/estrongs/android/pop/app/ad/cn/a;

    move-object v2, p4

    move-object v3, p0

    move-object v4, p1

    move-object v5, p2

    move-object v6, p3

    move-object v8, p5

    invoke-direct/range {v2 .. v8}, Lcom/estrongs/android/pop/app/ad/cn/a;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/b;Lcom/estrongs/android/pop/app/ad/cn/AdType;ILjava/util/List;)V

    invoke-interface {v0, p4}, Les/dk;->a(Lcom/estrongs/android/pop/app/ad/cn/d;)V

    .line 6
    :goto_0
    invoke-static {p0, p1, p2, p3, v0}, Lcom/estrongs/android/pop/app/ad/cn/c;->a(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/b;Lcom/estrongs/android/pop/app/ad/cn/AdType;Les/dk;)V

    return-void
.end method
